import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
import {ViewCell} from "ng2-smart-table";

@Component({
  selector: 'app-hyperlink-render',
  templateUrl: './hyperlink-render.component.html',
  styleUrls: ['./hyperlink-render.component.css']
})
export class HyperlinkRenderComponent implements OnInit, ViewCell {
  @Input()
  value: string | number;
  @Input()
  rowData: any;
  @Output()
  hyperlinkFire: EventEmitter<any> = new EventEmitter();

  constructor() { }

  ngOnInit() {
  }

  onClick(){
    console.debug('onClick')
    this.hyperlinkFire.emit(this.rowData)
  }
}
